use super::model::Model;


pub struct AdvertPositionModel {
    table_name:String,
    primary_key:String
}

impl AdvertPositionModel {
    pub fn name(&self) -> &str {
        "name"
    }
    pub fn flag(&self) -> &str {
        "flag"
    }
}

impl Model for AdvertPositionModel {
    fn new() ->Self {
        Self {
            table_name: "advert_positions".to_string(),
            primary_key: "id".to_string()
        } 
    }

    fn table(&self) -> &str {
        self.table_name.as_str()
    }
    fn primary_key(&self) -> &str {
        self.primary_key.as_str()
    }

}
